import React,{Component} from 'react';
import {
    Text,
    Modal,
    TouchableHighlight,
    View,
    StyleSheet,
    ProgressBarAndroid
} from 'react-native'
import EditView from "../lib/EditView";

export default class Loading extends Component{
    constructor(props){
        super(props);

    }
    onRequestClose() {

    }
    render(){
        return (

                <Modal animationType={"fade"} transparent={true}  onRequestClose={()=>this.onRequestClose()}>
                    <View style={styles.loadingBox}>
                        <ProgressBarAndroid styleAttr='Inverse' color='#FF4500' />
                    </View>
                </Modal>

        );
    }
}

const styles = StyleSheet.create({
    loadingBox: { // Loading居中
        flex:1,
        alignItems:'center',
        justifyContent:'center',
        backgroundColor:'rgba(0, 0, 0, 0.5)',
    }

});